package com.hbx.eduservice.client;

import com.hbx.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Author hbx
 * @Date 2023/10/11 14:51
 */
@Component
@FeignClient(name = "service-vod",fallback = VodFileDegradeFeignClient.class) //被调用服务的名称
public interface VodClient {

    /**
     * 在service_vod服务中被调用的方法
     * 路径要写全路径
     * @param id
     * @return
     */
    @DeleteMapping("/eduvod/video/removeAlyVideo/{id}")
    R removeAlyVideo(@PathVariable String id);

    /**
     * 删除多个视频
     * @param videoIdList
     * @return
     */
    @DeleteMapping("/eduvod/video/deleteBatch")
    R deleteBatch(@PathVariable("videoIdList") List<String> videoIdList);
}
